package com.caregiver.watch.business.user.model.dto;

import com.caregiver.watch.business.user.model.po.UserAddress;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @Description: 修改地址参数
 * @Author 疆戟
 * @Date 2025/8/23 11:29
 * @Version 1.0
 */
@Data
@Schema(title = "修改地址参数")
public class EditAddressParam extends BindAddressParam {


    @Schema(description = "地址ID")
    private Long addressId;


    /**
     * 转换为po
     * @return
     */
    @Override
    public UserAddress toPo() {
        UserAddress userAddress = super.toPo();
        userAddress.setId(this.addressId);
        return userAddress;
    }
}
